
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:hari_curly/src/model/device_model.dart';

class DeviceConnectStatus  extends Cubit<DeviceModel> {
  DeviceConnectStatus(super.initialState);

  void connect(DeviceModel device)  {
    emit(device);
  }
  void disconnect()  {
    emit(DeviceModel(id: "-1", name: "未连接", status: "0"));
  }
  DeviceModel getDevice()  {
    return state;
  }

}
